package com.xuhai.blog19.admin.dao;

import com.xuhai.blog19.admin.entity.ArticleEntity;
import com.xuhai.blog19.admin.entity.TimelineEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author PangJunjie
 * @Date 2023/2/11/011
 */
@Mapper
public interface TimelineDao {
    List<TimelineEntity> getTimeline();

    List<ArticleEntity> getArticleListByYear(@Param("year") String year, @Param("limit") Integer limit);
}
